package com.test;

/**
 * Created by 41579 on 2017/5/27.
 */
public class YieldRunnable implements Runnable {
    @Override
    public void run() {
        synchronized (this) {
            System.out.println(Thread.currentThread().getName() + "begin");
            Thread.yield();
            System.out.println(Thread.currentThread().getName() + "end");
        }
    }
}
